<?php


class Zend_View_Helper_Kosarica {
    // Init data for AdminEdit form
    public function kosarica() {

    }

    public function getKosarica($where = null) {
        $mapper = new Application_Model_KosaricaMapper();

        $strankaSession = new Zend_Session_Namespace('Store_Stranke');

        if ($strankaSession->strankaId) {
            return $mapper->getIzdelki($strankaSession->strankaId);
        } else {
            return null;
        }
    }

    public function getIzdelki($kosarica) {
        $mapper = new Application_Model_KosaricaMapper();
        return $mapper->getIzdelki2($kosarica);
    }

}